﻿using System;

namespace Oxage.Controls.AvalonEditExtensions
{
	public class CodeCompletionItem : ICodeCompletionItem
	{
		#region Constructor
		public CodeCompletionItem(string summary, string description)
		{
			this.summary = summary;
			this.description = description;
		}
		#endregion

		#region Public methods
		public override string ToString()
		{
			return this.Summary ?? "?";
		}
		#endregion

		#region ICodeCompletionItem Members
		public string Summary
		{
			get { return this.summary; }
		}
		private string summary;

		public string Description
		{
			get { return this.description; }
		}
		private string description;

		public int Priority
		{
			get { return 1; }
		}
		#endregion
	}
}
